<!DOCTYPE html>
<html xmlns:th="www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>CREATE NEW FOOD</title>
<link rel="stylesheet" href="../../css/bootstrap/bootstrap.css"
	th:href="@{/css/bootstrap/bootstrap.css}" />
<script src="../../js/jquery-1.11.2.js" th:src="@{/js/jquery-1.11.2.js}"></script>
<script src="../../js/food.js" th:src="@{/js/food.js}"></script>
<style>
@font-face {
	font-family: 'Glyphicons Halflings';
	src: url('../fonts/glyphicons-halflings-regular.eot');
	src: url('../fonts/glyphicons-halflings-regular.eot?#iefix')
		format('embedded-opentype'),
		url('../fonts/glyphicons-halflings-regular.woff') format('woff'),
		url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'),
		url('../fonts/glyphicons-halflings-regular.svg#glyphicons-halflingsregular')
		format('svg');
}
}
</style>
</head>
<body>
	<header></header>
	<nav class="navbar navbar-inverse">
		<div class="container-fluid">
			<div>
				<ul class="nav navbar-nav navbar-right">
					<li><a href="#"><span class="glyphicon glyphicon-search"></span>Sign
							Up</a></li>
					<li><a href="#"><span class="glyphicon glyphicon-log-in"></span>
							Login</a></li>
				</ul>
			</div>
		</div>
	</nav>
	<section>
		<article class="container col-md-10 col-md-offset-1">
			<div id="error"></div>
			<ol class="breadcrumb">
				<li><a href="#">Home</a></li>
				<li><a href="#">Food</a></li>
				<li class="active">Add</li>
			</ol>
			<div class="panel panel-success">
				<div class="panel-heading">CREATE NEW FOOD</div>
				<div class="panel-body">
					<form id="food" name="food" method="post" th:action="@{/food/add}" onsubmit="return validateForm(); validateCheckExisted();"
						class="form-horizontal container col-md-10 col-md-offset-1">
						<!-- <div class="form-group">
							<label class="control-label col-md-3" for="restaurantName">Restaurant Name:<span style="color: red">(*)</span></label>
							<div class="col-md-9">
								<input list="restaurant" class="form-control"/>
								<datalist id="restaurant">
									<option/>
									<option th:each="res : ${listRestaurant.entrySet()}" th:value="${res.value}">
									</option>
								</datalist>
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-md-3" for="menuName">Menu Name:<span style="color: red">(*)</span></label>
							<div class="col-md-9">
								<input list="browsers1" class="form-control"/>
								<datalist id="browsers1">
									<option />
								</datalist>
							</div>
						</div> -->
						<input type="hidden" id="restaurantId" name="restaurantId" th:value="${food.restaurantId}" />
						<div class="form-group">
							<label class="control-label col-md-3">Restaurant Name:</label>
							<div class="col-md-9">
								<input type="text" class="form-control" id="restaurantName"
									name="restaurantName" readonly="readonly"
									th:value="${food.restaurantName}" />
							</div>
						</div>
						<input type="hidden" id="menuFoodId" name="menuFoodId"
							th:value="${food.menuFoodId}" />
						<div class="form-group">
							<label class="control-label col-md-3">Menu Food Name:</label>
							<div class="control-label col-md-9">
								<input type="text" class="form-control" id="menuFoodName"
									name="menuFoodName" readonly="readonly"
									th:value="${food.menuFoodName}" />
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-md-3">Food Name:<span
								style="color: red">(*)</span></label>
							<div class="col-md-9">
								<input type="text" class="form-control" id="foodName"
									name="foodName" />
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-md-3" for="foodTitle">Food
								Title:</label>
							<div class="col-md-9">
								<input type="text" class="form-control" id="foodTitle"
									name="foodTitle" placeholder="Enter food title" />
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-md-3">Food Image:</label>
							<div class="col-md-9">
								<input type="file" class="form-control" id="foodImage"
									name="foodImage" placeholder="Enter food image" />
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-md-3">Old Price:<span
								style="color: red">(*)</span></label>
							<div class="col-md-9">
								<input type="number" class="form-control" id="oldPrice"
									name="oldPrice" />
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-md-3">New Price:</label>
							<div class="control-label col-md-9">
								<input type="number" class="form-control" id="newPrice"
									name="newPrice" />
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-md-3" for="description">Description:</label>
							<div class="control-label col-md-9">
								<textarea class="form-control" rows="3" id="description"
									name="description" placeholder="Enter description"></textarea>
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-offset-3 col-sm-2">
								<button type="button"
									class="btn btn-primary glyphicon glyphicon-backward">Back</button>
							</div>
							<div class="col-sm-offset-1 col-sm-3 pull-right">
								<button type="submit"
									class="btn btn-primary glyphicon glyphicon-new-window">Create</button>
							</div>
						</div>
					</form>
				</div>
				<div class="panel-footer"></div>
			</div>
		</article>
	</section>
	<footer class="container col-md-12">
		<ol class="breadcrumb text-center">
			<li class="active"><p>@copyright - University Of Information
					Technology - Spring + hibernate + css3 + html5</p></li>
		</ol>
	</footer>
</body>
</html>